<?php
/**
 * Author: ngreduce
 * Date: 05.03.11
 * Time: 13:00
 */

$this->breadcrumbs = array(
    Yii::t('mj-base', 'Jobs'),
);

echo CHtml::beginForm($this->createUrl('job/index'), 'get');
$this->widget('CAutoComplete', array(
        'name'=>'tags',
        'value'=>(isset($_GET['tags'])) ? $_GET['tags'] : '',
		'url'=>array('suggestTags'),
		'multiple'=>true,
        'multipleSeparator'=>' ',
		'htmlOptions'=>array('size'=>50),
));
echo CHtml::submitButton(Yii::t('mj-base', 'Search'));
echo CHtml::endForm();
?>
<br>

<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
	'template'=>"{items}\n{pager}",
)); ?>

<?php
$this->beginWidget('zii.widgets.jui.CJuiDialog',array(
                'id'=>'moderationDialog',
                'options'=>array(
                    'title'=>Yii::t('mj-base','Decline'),
                    'autoOpen'=>false,
                    'modal'=>'true',
                    'width'=>'auto',
                    'height'=>'auto',
                ),
                ));
echo $this->renderPartial('_dialog', array('model'=>new ModerationDecline())); ?>
<?php $this->endWidget('zii.widgets.jui.CJuiDialog');?>
